import requests
# get 请求
def get_api(url,body,head):
    res = requests.get(url=url, params=body, headers=head)
    return res.json()
# post请求
def post_api(url,body,head):
    res = requests.post(url=url, json=body, headers=head)
    return res.json()
# put请求
def put_api(url,body,head):
    res = requests.put(url=url, json=body, headers=head)
    return res.json()